package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:19
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductFeatureCheckList implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long productFeatureId;

    /**
     * Attribute productFeatureId Be Seted Falg
     */
    private boolean productFeatureIdSetted = false;

    /**
    * Attribute productFeatureId is Null Falg
    */
    private boolean productFeatureIdNull = false;
    private String checkContent;

    /**
     * Attribute checkContent Be Seted Falg
     */
    private boolean checkContentSetted = false;

    /**
    * Attribute checkContent is Null Falg
    */
    private boolean checkContentNull = false;
    private int sortIndex;

    /**
     * Attribute sortIndex Be Seted Falg
     */
    private boolean sortIndexSetted = false;

    /**
    * Attribute sortIndex is Null Falg
    */
    private boolean sortIndexNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;

    public ProductFeatureCheckList() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get productFeatureId
         *
         * @return long
         */
    final public long getProductFeatureId() {
        return productFeatureId;
    }

    /**
     * Set productFeatureId
     *
     * @param long
     */
    final public void setProductFeatureId(long productFeatureId) {
        this.productFeatureId = productFeatureId;

        this.productFeatureIdSetted = true;

        this.setProductFeatureIdNull(false);
    }

    /**
     * Get productFeatureId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductFeatureIdSetted() {
        return this.productFeatureIdSetted;
    }

    /**
     * Set productFeatureId Null
     *
     */
    final public void setProductFeatureIdNull() {
        this.productFeatureIdNull = true;
    }

    final public void setProductFeatureIdNull(boolean aNullFlag) {
        this.productFeatureIdNull = aNullFlag;
    }

    final public boolean isProductFeatureIdNull() {
        return this.productFeatureIdNull;
    }

    /**
         * Get checkContent
         *
         * @return String
         */
    final public String getCheckContent() {
        if (isCheckContentNull()) {
            return null;
        } else {
            return StringUtils.trim(checkContent);
        }
    }

    /**
     * Set checkContent
     *
     * @param String
     */
    final public void setCheckContent(String checkContent) {
        this.checkContent = StringUtils.trim(checkContent);

        this.checkContentSetted = true;

        this.setCheckContentNull(this.checkContent == null);
    }

    /**
     * Get checkContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCheckContentSetted() {
        return this.checkContentSetted;
    }

    /**
     * Set checkContent Null
     *
     */
    final public void setCheckContentNull() {
        this.checkContentNull = true;
    }

    final public void setCheckContentNull(boolean aNullFlag) {
        this.checkContentNull = aNullFlag;
    }

    final public boolean isCheckContentNull() {
        return this.checkContentNull;
    }

    /**
         * Get sortIndex
         *
         * @return int
         */
    final public int getSortIndex() {
        return sortIndex;
    }

    /**
     * Set sortIndex
     *
     * @param int
     */
    final public void setSortIndex(int sortIndex) {
        this.sortIndex = sortIndex;

        this.sortIndexSetted = true;

        this.setSortIndexNull(false);
    }

    /**
     * Get sortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSortIndexSetted() {
        return this.sortIndexSetted;
    }

    /**
     * Set sortIndex Null
     *
     */
    final public void setSortIndexNull() {
        this.sortIndexNull = true;
    }

    final public void setSortIndexNull(boolean aNullFlag) {
        this.sortIndexNull = aNullFlag;
    }

    final public boolean isSortIndexNull() {
        return this.sortIndexNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductFeatureCheckList) == false) {
            return false;
        }

        ProductFeatureCheckList other = (ProductFeatureCheckList) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("productFeatureId=");
        buffer.append(this.productFeatureId);

        buffer.append("checkContent=");
        buffer.append(this.checkContent);

        buffer.append("sortIndex=");
        buffer.append(this.sortIndex);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("]");

        return buffer.toString();
    }
}
